package  
{
	import org.flixel.FlxSprite;
	/**
	 * Exists to require the GameScene reference for all objects in this game
	 * @author morgan
	 */
	public class ReflectionSprite extends FlxSprite
	{
		public var scene:GameScene = null;
		
		public var canSwitch:Boolean = false;
		
		public function ReflectionSprite(x:int, y:int, scene:GameScene, image:Class = null) 
		{
			super(x, y, image);
			cameras = [scene.camera]
			this.scene = scene;
			
		}
		
		override public function update():void 
		{
			super.update();
			
			if (canSwitch && (y + height / 2) > scene.tilemap.height)
			{
				velocity.y = -Math.abs(velocity.y);
				scene.other.throwables.add(this);
				scene.throwables.remove(this);
				this.scene = scene.other;
				cameras = [scene.camera]
			}
		}
		
		public function collides(o:ReflectionSprite):void
		{
			
		}
		
	}

}